package cn.thoughtworks.school.usercenter.repositories;


import cn.thoughtworks.school.usercenter.entities.PasswordReset;
import cn.thoughtworks.school.usercenter.entities.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface PasswordResetRepository extends JpaRepository<PasswordReset, Long> {

    List<PasswordReset> getPasswordResetByUserIdOrderByCreateTimeDesc(Long userId);
    PasswordReset findByUuId(String uuId);
}
